/**
 * 项目名称：MSHF
 * 包名称：com.mt.edu.domain
 * 文件名称：CourseAdjustment.java
 */
package com.mt.edu.cs.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mt.edu.base.domain.Teacher;

/**
 * 类名称：CourseAdjustment <br>
 * 类描述： 课程调整信息<br>
 * 创建人： 马腾 <br>
 * 创建时间：Apr 29, 2014 10:00:07 PM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Apr 29, 2014 10:00:07 PM <br>
 */

@Entity
@Table(name = "OL_COURSE_ADJUSTMENT")
public class CourseAdjustment implements Serializable {

	private static final long serialVersionUID = 7859808916496190641L;

	@Id
	@Column(name = "COURSE_ADJUST_ID")
	private String id;
	
	/**
	 * 调整类型：
	 * 1：将原日期原周几的课调整到现日期现周几的课，原课程取消；
	 * 2：将原日期原周几的原节次的课程与现日期现周几的现节次课程互调；
	 * 3：将原日期原周几的原节次的原教师调整为现教师
	 */
	@Column(name = "COURSE_ADJUST_TYPE")
	private String type;
	
	@Column(name = "OLD_DATE")
	private String oldDate;
	
	/**原周几(1:周一...7：周日)*/
	@Column(name = "OLD_DAY_OF_WEEK")
	private String oldWeek;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "OLD_SECTION_ID")
	private CourseSection oldCourseSection;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "OLD_TEACHER_ID")
	private Teacher oldTeacher;
	
	@Column(name = "NEW_DATE")
	private String newDate;
	
	/**现周几(1:周一...7：周日)*/
	@Column(name = "NEW_DAY_OF_WEEK")
	private String newWeek;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "NEW_SECTION_ID")
	private CourseSection newCourseSection;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "NEW_TEACHER_ID")
	private Teacher newTeacher;
	
	@Column(name = "CREATE_DT")
	private Date createDt;
	
	@Column(name = "UPDATE_DT")
	private Date updateDt; 
	
	@Column(name = "OPERATOR")
	private String operator;
	
	@Column(name = "RESERVED1")
	private String reserved1;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getOldDate() {
		return oldDate;
	}

	public void setOldDate(String oldDate) {
		this.oldDate = oldDate;
	}

	public String getOldWeek() {
		return oldWeek;
	}

	public void setOldWeek(String oldWeek) {
		this.oldWeek = oldWeek;
	}

	public CourseSection getOldCourseSection() {
		return oldCourseSection;
	}

	public void setOldCourseSection(CourseSection oldCourseSection) {
		this.oldCourseSection = oldCourseSection;
	}

	public Teacher getOldTeacher() {
		return oldTeacher;
	}

	public void setOldTeacher(Teacher oldTeacher) {
		this.oldTeacher = oldTeacher;
	}

	public String getNewDate() {
		return newDate;
	}

	public void setNewDate(String newDate) {
		this.newDate = newDate;
	}

	public String getNewWeek() {
		return newWeek;
	}

	public void setNewWeek(String newWeek) {
		this.newWeek = newWeek;
	}

	public CourseSection getNewCourseSection() {
		return newCourseSection;
	}

	public void setNewCourseSection(CourseSection newCourseSection) {
		this.newCourseSection = newCourseSection;
	}

	public Teacher getNewTeacher() {
		return newTeacher;
	}

	public void setNewTeacher(Teacher newTeacher) {
		this.newTeacher = newTeacher;
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public Date getUpdateDt() {
		return updateDt;
	}

	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}
	
}
